package com.renwei.yunlong.fragment;

import android.view.LayoutInflater;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import com.renwei.yunlong.R;
import com.renwei.yunlong.base.BaseFragment;

import butterknife.Bind;
import butterknife.ButterKnife;

/**
 * 消息--Fragment
 * <p>
 * Created by Administrator on 2017/8/24.
 */

public class NewsFragment extends BaseFragment implements View.OnClickListener {

    @Bind(R.id.tv_title)
    TextView tvTitle;
    @Bind(R.id.iv_edit)
    ImageView ivEdit;

    @Override
    public View initView() {
        View view = LayoutInflater.from(mActivity).inflate(R.layout.fragment_news, null);
        ButterKnife.bind(this, view);
        return view;
    }

    @Override
    public void initData() {
        tvTitle.setText("消息提醒");
        ivEdit.setVisibility(View.VISIBLE);
        ivEdit.setOnClickListener(this);
    }

    @Override
    public void onDestroyView() {
        super.onDestroyView();
        ButterKnife.unbind(this);
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()){
            case R.id.iv_edit:
                break;
        }
    }
}
